#include "Waypoint.h"
//#include "Entity.h"
#include "../SGD Wrappers/CSGD_Direct3D.h" //get rid of as soon as it's off

CWaypoint::CWaypoint(void)
{
	TypeofObj = Obj_Waypoint;
	m_pNext = nullptr;
	m_pPrev = nullptr;
}

CWaypoint::~CWaypoint(void)
{

}

/*virtual*/ void CWaypoint::Render( void )
{
	RECT temp;
	temp.bottom = (LONG)(CEntity::GetPosY()+2);
	temp.top = (LONG)(CEntity::GetPosY()-2);
	temp.left = (LONG)(CEntity::GetPosX()-2);
	temp.right = (LONG)(CEntity::GetPosX()+2);

	CSGD_Direct3D::GetInstance()->DrawRect(temp,255,0,0);

	if(m_pNext != nullptr)
		CSGD_Direct3D::GetInstance()->DrawLine((int)(CEntity::GetPosX()),(int)(CEntity::GetPosY()),(int)(m_pNext->GetPosX()), (int)(m_pNext->GetPosY()), 0,255,0);
	
}

void CWaypoint::SetNext(CWaypoint * _pNext)
{
	m_pNext = _pNext;
}

void CWaypoint::SetPrev(CWaypoint * _pPrev)
{
	m_pPrev = _pPrev;
}

bool CWaypoint::CheckCollision( IEntity * pOther )
{
	return false;
}
